# -*- coding: UTF-8 -*-
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import Select
import time,json,requests,threading


xq = webdriver.Firefox()
xq.get('https://xueqiu.com/?md5__1038=QqGxcDnDyiitnD05o4%2Br%3DWYG%3D%3DqD5w%2BNdx')


mobile=18573122260

xqs=xq.find_element(By.CSS_SELECTOR,".newLogin_form-group_2wq input")
xqs.send_keys(mobile)
xqs=xq.find_element(By.CSS_SELECTOR,".newLogin_modal__login__automatic_3Jf.newLogin_modal__login__automatic_new_3-d .iconfont_iconfont_9UW")
xqs.click()
time.sleep(10)
while(True):
	xqs=xq.find_element(By.CSS_SELECTOR,".newLogin_form-group-addon_XmE .newLogin_send-code_-fb.newLogin_active_2CK")
	xqs.click()
	time.sleep(60)